package com.bob.web.entity.system;

import com.bob.web.entity.BaseIncIdEntity;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;

import java.util.Date;
import java.util.List;

/**
 * 名称: Role<br>
 * 描述:角色<br>
 * 类型: JAVA<br>
 * 最近修改时间:2017/7/20 11:07<br>
 *
 * @author BoYangsh
 * @version [版本号, V1.0]
 * @since 2017/7/20 11:07
 */
@Data
public class Role extends BaseIncIdEntity<Long> {

	private String name;
	/**
	 * 这里存储的不是主键，而是uri
	 */
	private List<String> resourceUris;

	private List<Long> resources;

	private String desc;

	private Long adminId;

	private Date createTime;

	@Transient
	private String adminName;

	/**
	 * 是否被拥有
	 */
	@Transient
	private boolean owned = false;

}
